import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()
// servicePath.dpMamtServer +
export function getList (data) {
  return request({
    url: servicePath.userServer + '/role/getRoleList',
    method: 'post',
    data
  })
}
export function addOrUpdRole (data) {
  return request({
    url: servicePath.userServer + '/role/addOrUpdRole',
    headers: {
      showLoading: true
    },
    method: 'post',
    data
  })
}
export function getRoleDetail (params) {
  return request({
    url: servicePath.userServer + '/role/getRoleDetail',
    method: 'get',
    params
  })
}
export function deleteRole (params) {
  return request({
    url: servicePath.userServer + '/role/deleteRole',
    headers: {
      showLoading: true
    },
    method: 'get',
    params
  })
}
